<?php
namespace app\index\controller;
use think\Controller;
use think\Request;

class Base extends  Controller
{
    public function _initialize()
    {
        parent::_initialize();
        $request = Request::instance();
        $c_name = $request->controller();
        $a_name = $request->action();

        if(mb_strtolower($c_name) == 'welcome'){
            $c_name = 'WechatFunction';
        }
        $this->assign("C_NAME",$c_name);
        $this->assign("A_NAME",$a_name);


    }

}
